package cn.stronglink.asset.module.assetmanage.pulloff.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;

import cn.stronglink.asset.model.PullOff;
import cn.stronglink.asset.model.PullOffDetail;
import cn.stronglink.asset.module.assetmanage.pulloff.vo.PullOffDetailVo;

public interface PullOffMapper {

	public List<PullOffDetailVo> queryPullOffDetailByParentId(@Param("pullOffId") Long pullOffId);
	
	public List<PullOff> queryPullOffList(Pagination page,@Param("params")Map<String, Object> params);
	
	public PullOff queryPullOffById(@Param("id")Long id);
	
	public void remove(Long id);
	
	public void removeDetail(Long id);

	public void insertPullOffDetail(PullOffDetail detail);

	public void updatePullOffDetail(PullOffDetail detail);
	
	public void updatePullOff(PullOff PullOff);

	public int insertPullOff(PullOff PullOff);

	public PullOffDetail qryById(@Param("id") Long id);

	public List<PullOffDetailVo> qryPullOffDetailVo(@Param("id") Long id);

	public List<PullOff> getPullOffList(@Param("params") Map<String, String> params);

	public List<PullOffDetailVo> getDetailById(@Param("pid") Long pid);


}
